class url(object):
    """URL class to wrap up Flask's app.route neatly"""
    def __init__(self, route, view_function, **params):
        super(url, self).__init__()
        self.route = route
        self.view_function = view_function
        self.params = params

def load_urls(app, urls):
    for url in urls:
        app.add_url_rule(url.route, view_func=url.view_function)
